package com.library.admin.modules.role.struct;

import org.mapstruct.*;
import com.library.admin.modules.role.entity.Role;
import com.library.admin.modules.role.vo.RoleVO;
import com.library.admin.modules.role.bo.RoleInsert;
import com.library.admin.modules.role.bo.RoleUpdate;

/**
 * 角色信息表(Role)对象映射转换
 *
 * @author xyh
 * @since 2023-10-02
 */
@Mapper(componentModel = "spring", nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
public interface RoleStructMapper {

    Role updateToRole(RoleUpdate update);

    Role insertToRole(RoleInsert insert);

    RoleVO roleToRoleVO(Role role);

}

